package com.minelx.animator.looper;

import com.minelx.taskscheduler.Cache;

public class Message {

	private static final Cache<Message> MESSAGE_CACHE = new Cache<>(Message::new);

	private float asFloat;

	private Message() {
	}

	void release() {
		MESSAGE_CACHE.add(this);
	}

	public float getAsFloat() {
		return asFloat;
	}

	public void setAsFloat(float asFloat) {
		this.asFloat = asFloat;
	}

	public static Message get() {
		return MESSAGE_CACHE.get();
	}
}
